package com.czhouse.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class SysResult {
    private Integer status;
    private String msg;
    private Object data;

    static public SysResult success(){
        return new SysResult(200,"响应成功",null);
    }
    static public SysResult success(Object data){
        return new SysResult(200,"响应成功",data);
    }
    static public SysResult fail(){
        return new SysResult(201,"响应失败",null);
    }
}
